<template>
  <div class="min-h-screen bg-light text-dark font-sans overflow-x-hidden">
    <Navbar />

    <!-- 英雄区域 -->
    <section id="home" class="relative min-h-screen flex items-center pt-20 overflow-hidden bg-white">
      <!-- 背景 -->
      <div class="absolute inset-0 z-0 bg-white">
        <!-- 简单的装饰元素 -->
        <div class="absolute top-10 left-10 w-20 h-20 rounded-full" style="background-color: #f76400; opacity: 0.1;"></div>
        <div class="absolute top-1/4 right-20 w-32 h-32 rounded-full" style="background-color: #f76400; opacity: 0.1;"></div>
        <div class="absolute bottom-20 left-1/4 w-24 h-24 rounded-full" style="background-color: #f76400; opacity: 0.1;"></div>
        <div class="absolute bottom-1/3 right-10 w-16 h-16 rounded-full" style="background-color: #f76400; opacity: 0.1;"></div>
      </div>

      <div class="container mx-auto px-6 md:px-12 relative z-20 py-20">
        <div class="max-w-4xl mx-auto text-center">
          <span class="inline-block px-6 py-2 rounded-full bg-primary/10 text-primary font-semibold text-sm mb-8">
            领先的 GEO 与 SEO 搜索优化解决方案提供商
          </span>
          <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold leading-tight mb-8">
  <span class="text-dark">让世界</span>
  <span class="text-gradient" style="background: linear-gradient(90deg, #0F3460, #00379e, #f76400); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;">找到你</span>
  <span class="text-dark">，选择你</span>
</h1>
          <p class="text-lg md:text-xl text-gray-600 max-w-2xl mx-auto mb-12 leading-relaxed">
            山东同风起信息科技专注于 GEO 与 SEO 搜索优化，通过前沿技术与深度洞察，
            帮助企业在数字时代占据搜索高地，实现品牌价值最大化。
          </p>
          <div class="flex flex-wrap justify-center gap-6 pt-4">
            <a href="#contact" class="px-10 py-4 text-white font-semibold rounded-lg shadow-xl hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-1 btn-pulse" style="background-color: #f76400;" @mouseover="hoverButton" @mouseout="unhoverButton">
              开启合作 <i class="fa fa-arrow-right ml-2"></i>
            </a>
            <a href="#services" class="px-10 py-4 bg-primary/10 hover:bg-primary/20 text-primary border border-primary/30 font-semibold rounded-lg shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1">
              了解服务
            </a>
          </div>
        </div>
      </div>

      <!-- 向下滚动指示 -->
      <div class="absolute bottom-10 left-1/2 transform -translate-x-1/2 z-20 animate-bounce">
        <a href="#services" class="text-primary/70 hover:text-primary transition-colors">
          <i class="fa fa-chevron-down text-2xl"></i>
        </a>
      </div>
    </section>

    <!-- 业务服务 -->
    <section id="services" class="py-24 bg-white relative overflow-hidden">
      <!-- 装饰元素 -->
      <div class="absolute top-0 right-0 w-1/3 h-1/3 bg-primary/5 rounded-full -mr-20 -mt-20"></div>
      <div class="absolute bottom-0 left-0 w-1/4 h-1/4 bg-secondary/5 rounded-full -ml-20 -mb-20"></div>

      <div class="container mx-auto px-6 md:px-12 relative z-10">
        <div class="text-center max-w-3xl mx-auto mb-16">
          <span class="inline-block px-6 py-2 rounded-full bg-primary/10 text-primary font-semibold text-sm mb-4">
            核心业务
          </span>
          <h2 class="text-3xl md:text-4xl lg:text-5xl font-bold mb-6">
            全方位搜索优化解决方案
          </h2>
          <p class="text-gray-600 text-lg">
            我们专注于 GEO 与 SEO 领域，通过深度技术与创新策略，帮助企业在数字世界中脱颖而出
          </p>
        </div>

        <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-10 lg:gap-16">
          <!-- GEO 服务 -->
          <div class="bg-white rounded-2xl shadow-xl p-8 border border-gray-100 card-reveal">
            <div class="w-16 h-16 bg-primary/10 rounded-xl flex items-center justify-center mb-8 transform transition-transform hover:scale-110">
              <i class="fa fa-globe text-primary text-3xl"></i>
            </div>
            <h3 class="text-2xl font-bold mb-4">GEO 生成式引擎优化</h3>
            <p class="text-gray-600 mb-8 leading-relaxed">
              针对新一代 AI 生成式搜索引擎的特点，优化品牌在 AI 回答中的呈现方式，提升自然推荐率与权威性。
            </p>
            <ul class="space-y-3 mb-8">
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-secondary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>多模态内容策略与优化</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-secondary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>知识图谱构建与增强</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-secondary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>语义理解与意图匹配优化</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-secondary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>AI 回答引用策略</span>
              </li>
            </ul>
            <a href="#contact" class="inline-flex items-center text-primary font-semibold hover:text-secondary transition-colors group">
              深入了解 <i class="fa fa-long-arrow-right ml-2 transform group-hover:translate-x-1 transition-transform"></i>
            </a>
          </div>

          <!-- SEO 服务 -->
          <div class="bg-white rounded-2xl shadow-xl p-8 border border-gray-100 card-reveal" style="transition-delay: 0.2s">
            <div class="w-16 h-16 bg-primary/10 rounded-xl flex items-center justify-center mb-8 transform transition-transform hover:scale-110">
              <i class="fa fa-search text-primary text-3xl"></i>
            </div>
            <h3 class="text-2xl font-bold mb-4">SEO 搜索引擎优化</h3>
            <p class="text-gray-600 mb-8 leading-relaxed">
              结合传统搜索引擎与新型 AI 平台的双重特性，打造全方位的搜索可见性策略，实现多渠道流量增长。
            </p>
            <ul class="space-y-3 mb-8">
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-secondary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>全域关键词策略规划</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-secondary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>技术 SEO 架构优化</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-secondary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>高质量内容创作与优化</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-secondary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>数据驱动的持续优化</span>
              </li>
            </ul>
            <a href="#contact" class="inline-flex items-center text-primary font-semibold hover:text-secondary transition-colors group">
              深入了解 <i class="fa fa-long-arrow-right ml-2 transform group-hover:translate-x-1 transition-transform"></i>
            </a>
          </div>

          <!-- 智能内容策略服务 -->
          <div class="bg-white rounded-2xl shadow-xl p-8 border border-gray-100 card-reveal" style="transition-delay: 0.4s">
            <div class="w-16 h-16 bg-secondary/10 rounded-xl flex items-center justify-center mb-8 transform transition-transform hover:scale-110">
              <i class="fa fa-lightbulb text-secondary text-3xl"></i>
            </div>
            <h3 class="text-2xl font-bold mb-4">智能内容策略</h3>
            <p class="text-gray-600 mb-8 leading-relaxed">
              创建符合AI理解模式的品牌内容，构建结构化知识体系，提升品牌信息在AI中的准确性和权威性。
            </p>
            <ul class="space-y-3 mb-8">
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-primary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>知识图谱构建</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-primary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>AI友好内容创作</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-primary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>内容结构化处理</span>
              </li>
              <li class="flex items-start group">
                <i class="fa fa-check-circle text-primary mt-1 mr-3 group-hover:scale-110 transition-transform"></i>
                <span>多语言内容适配</span>
              </li>
            </ul>
            <a href="#contact" class="inline-flex items-center text-primary font-semibold hover:text-secondary transition-colors group">
              深入了解 <i class="fa fa-long-arrow-right ml-2 transform group-hover:translate-x-1 transition-transform"></i>
            </a>
          </div>
        </div>
      </div>
    </section>

    <!-- 覆盖领域与行业 -->
    <section class="py-24 bg-gray-50 relative overflow-hidden">
      <div class="container mx-auto px-6 md:px-12 relative z-10">
        <div class="text-center max-w-3xl mx-auto mb-16">
          <span class="inline-block px-6 py-2 rounded-full bg-primary/10 text-primary font-semibold text-sm mb-4">
            服务覆盖
          </span>
          <h2 class="text-3xl md:text-4xl lg:text-5xl font-bold mb-6">
            GEO 与 SEO 覆盖的领域与行业
          </h2>
          <p class="text-gray-600 text-lg">
            我们为各行业提供专业的搜索优化服务，帮助企业在数字时代建立强大的搜索存在
          </p>
        </div>

        <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16">
          <!-- GEO 覆盖领域 -->
          <div class="bg-white rounded-xl p-6 shadow-lg card-reveal">
            <div class="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
              <i class="fa fa-globe text-primary text-xl"></i>
            </div>
            <h3 class="text-xl font-bold mb-4 text-dark">GEO 覆盖领域</h3>
            <ul class="space-y-2 text-gray-600">
              <li>• 电商与零售</li>
              <li>• 教育培训</li>
              <li>• 医疗健康</li>
              <li>• 金融服务</li>
              <li>• 制造业</li>
            </ul>
          </div>

          <!-- SEO 覆盖行业 -->
          <div class="bg-white rounded-xl p-6 shadow-lg card-reveal" style="transition-delay: 0.2s">
            <div class="w-12 h-12 bg-secondary/10 rounded-lg flex items-center justify-center mb-4">
              <i class="fa fa-search text-secondary text-xl"></i>
            </div>
            <h3 class="text-xl font-bold mb-4 text-dark">SEO 覆盖行业</h3>
            <ul class="space-y-2 text-gray-600">
              <li>• 科技互联网</li>
              <li>• 汽车交通</li>
              <li>• 能源环保</li>
              <li>• 文化娱乐</li>
              <li>• 法律咨询</li>
            </ul>
          </div>

          <!-- GEO 覆盖模型 -->
          <div class="bg-white rounded-xl p-6 shadow-lg card-reveal" style="transition-delay: 0.4s">
            <div class="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
              <i class="fa fa-cogs text-primary text-xl"></i>
            </div>
            <h3 class="text-xl font-bold mb-4 text-dark">GEO 覆盖模型</h3>
            <ul class="space-y-2 text-gray-600">
              <li>• DeepSeek</li>
              <li>• 豆包</li>
            </ul>
          </div>
        </div>

        <!-- 服务特色 -->
        <div class="bg-gradient-to-r from-primary to-secondary rounded-2xl p-8 text-white">
          <div class="text-center mb-8">
            <h3 class="text-2xl font-bold mb-4">我们的服务特色</h3>
            <p class="text-lg opacity-90">专业、全面、高效的搜索优化解决方案</p>
          </div>
          <div class="grid md:grid-cols-3 gap-6">
            <div class="text-center">
              <div class="w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4">
                <i class="fa fa-target text-2xl"></i>
              </div>
              <h4 class="font-bold mb-2">精准定位</h4>
              <p class="text-sm opacity-90">针对不同行业特点制定专属优化策略</p>
            </div>
            <div class="text-center">
              <div class="w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4">
                <i class="fa fa-rocket text-2xl"></i>
              </div>
              <h4 class="font-bold mb-2">快速见效</h4>
              <p class="text-sm opacity-90">3-6个月内显著提升搜索可见度</p>
            </div>
            <div class="text-center">
              <div class="w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-4">
                <i class="fa fa-chart-line text-2xl"></i>
              </div>
              <h4 class="font-bold mb-2">持续优化</h4>
              <p class="text-sm opacity-90">数据驱动的持续改进与优化</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 案例展示 -->
    <section id="cases" class="py-24 bg-gray-50">
      <div class="container mx-auto px-6 md:px-12">
        <div class="text-center max-w-3xl mx-auto mb-16">
          <span class="inline-block px-6 py-2 rounded-full bg-primary/10 text-primary font-semibold text-sm mb-4">
            成功案例
          </span>
          <h2 class="text-3xl md:text-4xl lg:text-5xl font-bold mb-6">
            客户的成功，我们的骄傲
          </h2>
          <p class="text-gray-600 text-lg">
            我们与各行业领先企业合作，通过专业的搜索优化服务，帮助他们实现业务增长与品牌提升
          </p>
        </div>

        <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
          <!-- 案例 1 -->
          <div class="bg-white rounded-xl overflow-hidden shadow-lg card-reveal group">
            <div class="h-60 overflow-hidden">
              <img
                src="https://picsum.photos/id/20/800/600"
                alt="制造业搜索优化案例"
                class="w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"
              />
            </div>
            <div class="p-8">
              <span class="inline-block px-3 py-1 bg-blue-100 text-primary text-xs font-semibold rounded-full mb-4">制造业</span>
              <h3 class="text-xl font-bold mb-3">重型机械企业 GEO 优化</h3>
              <p class="text-gray-600 mb-6">
                通过全面的 GEO 优化策略，帮助客户在 AI 搜索结果中占据领先位置，询盘量提升 156%。
              </p>
              <a href="#" class="inline-flex items-center text-primary font-semibold hover:text-secondary transition-colors group">
                查看详情 <i class="fa fa-arrow-right ml-2 transform group-hover:translate-x-1 transition-transform"></i>
              </a>
            </div>
          </div>

          <!-- 案例 2 -->
          <div class="bg-white rounded-xl overflow-hidden shadow-lg card-reveal group" style="transition-delay: 0.2s">
            <div class="h-60 overflow-hidden">
              <img
                src="https://picsum.photos/id/48/800/600"
                alt="教育行业SEO案例"
                class="w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"
              />
            </div>
            <div class="p-8">
              <span class="inline-block px-3 py-1 bg-blue-100 text-primary text-xs font-semibold rounded-full mb-4">教育行业</span>
              <h3 class="text-xl font-bold mb-3">在线教育平台 SEO 优化</h3>
              <p class="text-gray-600 mb-6">
                整合 SEO 与内容策略，帮助教育平台核心课程关键词排名提升，自然流量增长 210%。
              </p>
              <a href="#" class="inline-flex items-center text-primary font-semibold hover:text-secondary transition-colors group">
                查看详情 <i class="fa fa-arrow-right ml-2 transform group-hover:translate-x-1 transition-transform"></i>
              </a>
            </div>
          </div>

          <!-- 案例 3 -->
          <div class="bg-white rounded-xl overflow-hidden shadow-lg card-reveal group" style="transition-delay: 0.4s">
            <div class="h-60 overflow-hidden">
              <img
                src="https://picsum.photos/id/26/800/600"
                alt="金融行业搜索优化案例"
                class="w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"
              />
            </div>
            <div class="p-8">
              <span class="inline-block px-3 py-1 bg-blue-100 text-primary text-xs font-semibold rounded-full mb-4">金融行业</span>
              <h3 class="text-xl font-bold mb-3">金融服务搜索可见性提升</h3>
              <p class="text-gray-600 mb-6">
                为大型金融机构提供全方位搜索优化，品牌相关关键词搜索可见度提升 89%，转化率提升 47%。
              </p>
              <a href="#" class="inline-flex items-center text-primary font-semibold hover:text-secondary transition-colors group">
                查看详情 <i class="fa fa-arrow-right ml-2 transform group-hover:translate-x-1 transition-transform"></i>
              </a>
            </div>
          </div>
        </div>

        <div class="text-center mt-12">
          <button @click="loadMoreCases" class="inline-block px-8 py-3 border border-primary text-primary hover:bg-primary hover:text-white font-semibold rounded-lg transition-all duration-300 transform hover:-translate-y-1 hover:shadow-lg">
            查看更多案例 <i class="fa fa-refresh ml-2"></i>
          </button>
        </div>
      </div>
    </section>

    <!-- 关于我们 -->
    <section id="about" class="py-24 bg-white">
      <div class="container mx-auto px-6 md:px-12">
        <div class="grid md:grid-cols-2 gap-16 items-center">
          <div class="relative card-reveal">
            <div class="absolute -top-6 -left-6 w-64 h-64 bg-primary/5 rounded-2xl -z-10"></div>
            <div class="absolute -bottom-6 -right-6 w-64 h-64 bg-secondary/5 rounded-2xl -z-10"></div>
            <img
              src="https://picsum.photos/id/3/800/1000"
              alt="关于山东同风起信息科技"
              class="w-full h-auto rounded-2xl shadow-xl object-cover transform transition-transform hover:scale-[1.02]"
            />
            <div class="absolute -bottom-10 -right-10 bg-white p-6 rounded-xl shadow-lg max-w-xs transform transition-transform hover:scale-105">
              <div class="flex items-center space-x-4 mb-4">
                <div class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center">
                  <i class="fa fa-quote-left text-primary text-xl"></i>
                </div>
                <div>
                  <h4 class="font-bold">客户评价</h4>
                  <p class="text-gray-500 text-sm">某上市公司 CEO</p>
                </div>
              </div>
              <p class="text-gray-600 italic">
                "同风起科技的搜索优化服务为我们带来了显著的业务增长，他们的专业能力令人印象深刻。"
              </p>
            </div>
          </div>
          <div class="space-y-8 card-reveal" style="transition-delay: 0.3s">
            <span class="inline-block px-6 py-2 rounded-full bg-primary/10 text-primary font-semibold text-sm">
              关于我们
            </span>
            <h2 class="text-3xl md:text-4xl font-bold leading-tight">
              山东同风起信息科技有限公司
            </h2>
            <p class="text-gray-600 text-lg leading-relaxed">
              山东同风起信息科技有限公司是国内领先的 GEO 与 SEO 搜索优化服务提供商，
              专注于通过技术创新与深度行业洞察，帮助企业在数字时代建立强大的搜索存在。
            </p>
            <p class="text-gray-600 text-lg leading-relaxed">
              我们的团队由资深搜索优化专家、AI 技术工程师和内容策略师组成，拥有丰富的行业经验
              和创新能力，为客户提供定制化、可落地的搜索优化解决方案。
            </p>

            <div class="grid grid-cols-2 gap-6 pt-4">
              <div class="flex flex-col p-4 border border-gray-100 rounded-lg hover:border-primary/20 hover:bg-primary/5 transition-colors">
                <div class="text-4xl font-bold text-primary mb-2">使命</div>
                <p class="text-gray-600">让每个企业都能在数字世界中被精准找到</p>
              </div>
              <div class="flex flex-col p-4 border border-gray-100 rounded-lg hover:border-primary/20 hover:bg-primary/5 transition-colors">
                <div class="text-4xl font-bold text-primary mb-2">愿景</div>
                <p class="text-gray-600">成为全球领先的搜索优化解决方案提供商</p>
              </div>
            </div>

            <a href="#contact" class="inline-block px-8 py-4 bg-primary hover:bg-primary/90 text-white font-semibold rounded-lg shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1">
              联系我们
            </a>
          </div>
        </div>
      </div>
    </section>

    <!-- 联系我们 -->
    <section id="contact" class="py-24 bg-gray-50 relative overflow-hidden">
      <!-- 装饰元素 -->
      <div class="absolute top-0 left-1/4 w-96 h-96 bg-primary/5 rounded-full -translate-y-1/2"></div>
      <div class="absolute bottom-0 right-1/4 w-96 h-96 bg-secondary/5 rounded-full translate-y-1/2"></div>

      <div class="container mx-auto px-6 md:px-12 relative z-10">
        <div class="max-w-5xl mx-auto"> <!-- 减小最大宽度 -->
          <div class="grid md:grid-cols-2 gap-12 items-center">
            <div class="card-reveal">
              <span class="inline-block px-6 py-2 rounded-full bg-primary/10 text-primary font-semibold text-sm mb-4">
                联系我们
              </span>
              <h2 class="text-3xl md:text-4xl font-bold mb-6"> <!-- 减小标题大小 -->
                让我们携手共创<br/>搜索领域新高度
              </h2>
              <p class="text-gray-600 mb-10 leading-relaxed">
                无论您是想了解更多关于搜索优化的信息，还是需要定制化解决方案，
                我们的专业团队都将为您提供一对一的咨询服务，助您实现业务目标。
              </p>

              <div class="space-y-6">
                <div class="flex items-start group">
                  <div class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mr-4 flex-shrink-0 group-hover:bg-primary/20 transition-colors">
                    <i class="fa fa-map-marker text-primary text-xl"></i>
                  </div>
                  <div>
                    <h4 class="font-bold text-lg mb-1">公司地址</h4>
                    <p class="text-gray-600">山东省济南市槐荫区张庄路街道烟台路保利中科创新广场13号楼8层803室</p>
                  </div>
                </div>

                <div class="flex items-start group">
                  <div class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mr-4 flex-shrink-0 group-hover:bg-primary/20 transition-colors">
                    <i class="fa fa-phone text-primary text-xl"></i>
                  </div>
                  <div>
                    <h4 class="font-bold text-lg mb-1">联系电话</h4>
                    <p class="text-gray-600">400-123-4567</p>
                    <p class="text-gray-600">0531-88887777</p>
                  </div>
                </div>

                <div class="flex items-start group">
                  <div class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mr-4 flex-shrink-0 group-hover:bg-primary/20 transition-colors">
                    <i class="fa fa-envelope text-primary text-xl"></i>
                  </div>
                  <div>
                    <h4 class="font-bold text-lg mb-1">电子邮箱</h4>
                    <p class="text-gray-600">info@tongfengqi.com</p>
                    <p class="text-gray-600">service@tongfengqi.com</p>
                  </div>
                </div>
              </div>

              <div class="mt-10 flex space-x-4">
                <a href="#" class="w-12 h-12 bg-primary/10 hover:bg-primary hover:text-white rounded-full flex items-center justify-center text-primary transition-all duration-300 transform hover:scale-110">
                  <i class="fa fa-weixin text-xl"></i>
                </a>
                <a href="#" class="w-12 h-12 bg-primary/10 hover:bg-primary hover:text-white rounded-full flex items-center justify-center text-primary transition-all duration-300 transform hover:scale-110">
                  <i class="fa fa-weibo text-xl"></i>
                </a>
                <a href="#" class="w-12 h-12 bg-primary/10 hover:bg-primary hover:text-white rounded-full flex items-center justify-center text-primary transition-all duration-300 transform hover:scale-110">
                  <i class="fa fa-linkedin text-xl"></i>
                </a>
                <a href="#" class="w-12 h-12 bg-primary/10 hover:bg-primary hover:text-white rounded-full flex items-center justify-center text-primary transition-all duration-300 transform hover:scale-110">
                  <i class="fa fa-youtube-play text-xl"></i>
                </a>
              </div>
            </div>

            <div class="bg-white p-6 md:p-8 rounded-2xl shadow-xl card-reveal" style="transition-delay: 0.3s"> <!-- 减小内边距 -->
              <h3 class="text-xl font-bold mb-6">发送咨询</h3> <!-- 减小标题大小 -->
              <form @submit.prevent="submitContactForm" class="space-y-5"> <!-- 减小间距 -->
                <div>
                  <label for="name" class="block text-gray-700 font-medium mb-2">姓名</label>
                  <input type="text" id="name" v-model="contactForm.name" class="w-full px-4 py-3 border border-gray-300 rounded-lg outline-none form-focus" placeholder="请输入您的姓名" required /> <!-- 减小内边距 -->
                </div>

                <!-- 移除公司名称字段 -->

                <div>
                  <label for="email" class="block text-gray-700 font-medium mb-2">邮箱</label>
                  <input type="email" id="email" v-model="contactForm.email" class="w-full px-4 py-3 border border-gray-300 rounded-lg outline-none form-focus" placeholder="请输入您的邮箱" required />
                </div>

                <div>
                  <label for="phone" class="block text-gray-700 font-medium mb-2">电话</label>
                  <input type="tel" id="phone" v-model="contactForm.phone" class="w-full px-4 py-3 border border-gray-300 rounded-lg outline-none form-focus" placeholder="请输入您的电话" required />
                </div>

                <div>
                  <label for="service" class="block text-gray-700 font-medium mb-2">感兴趣的服务</label>
                  <select id="service" v-model="contactForm.service" class="w-full px-4 py-3 border border-gray-300 rounded-lg outline-none form-focus appearance-none bg-white" required> <!-- 减小内边距 -->
                    <option value="" disabled selected>请选择服务类型</option>
                    <option value="geo">GEO 生成式引擎优化</option>
                    <option value="seo">SEO 搜索引擎优化</option>
                    <option value="all">全部服务</option>
                  </select>
                </div>

                <div>
                  <label for="message" class="block text-gray-700 font-medium mb-2">咨询内容</label>
                  <textarea id="message" rows="3" v-model="contactForm.message" class="w-full px-4 py-3 border border-gray-300 rounded-lg outline-none form-focus" placeholder="请详细描述您的需求或问题" required></textarea> <!-- 减小行数 -->
                </div>

                <button type="submit" class="w-full bg-primary hover:bg-primary/90 text-white font-semibold py-3 px-6 rounded-lg shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1"> <!-- 减小按钮内边距 -->
                  提交咨询
                </button>
              </form>
            </div>
          </div>
        </div>
      </div>
    </section>

    <Footer />

    <!-- 成功提交弹窗 -->
    <SuccessModal
      :show="showSuccessModal"
      title="提交成功"
      message="感谢您的咨询，我们的专业顾问将尽快与您联系"
      @close="showSuccessModal = false"
    />
  </div>
</template>

<script>
import Navbar from '@/components/Navbar.vue'
import Footer from '@/components/Footer.vue'
import SuccessModal from '@/components/SuccessModal.vue'

export default {
  name: 'Home',
  components: {
    Navbar,
    Footer,
    SuccessModal
  },
  data() {
    return {
      contactForm: {
        name: '',
        email: '',
        phone: '',
        service: '',
        message: ''
      },
      showSuccessModal: false
    }
  },
  mounted() {
    this.initAnimations()
    this.handleHashRouting()
  },
  methods: {
    initAnimations() {
      // 滚动动画初始化
      const animateOnScroll = () => {
        const elements = document.querySelectorAll('.card-reveal')
        elements.forEach(element => {
          const elementTop = element.getBoundingClientRect().top
          const elementVisible = 150
          if (elementTop < window.innerHeight - elementVisible) {
            element.classList.add('active')
          }
        })
      }
      window.addEventListener('scroll', animateOnScroll)
      animateOnScroll()
    },
    handleHashRouting() {
      // 处理哈希路由
      if (this.$route.hash) {
        setTimeout(() => {
          const element = document.querySelector(this.$route.hash)
          if (element) {
            element.scrollIntoView({ behavior: 'smooth' })
          }
        }, 100)
      }
    },
    hoverButton(event) {
      event.target.style.backgroundColor = '#d45600'
    },
    unhoverButton(event) {
      event.target.style.backgroundColor = '#f76400'
    },
    loadMoreCases() {
      // 显示加载状态
      const button = event.target
      button.innerHTML = '<i class="fa fa-spinner fa-spin mr-2"></i> 加载中...'

      // 模拟加载更多案例
      setTimeout(() => {
        // 这里可以通过AJAX从服务器加载更多案例
        button.innerHTML = '没有更多案例了'
        button.disabled = true
        button.classList.add('opacity-50', 'cursor-not-allowed')
      }, 1500)
    },
    async submitContactForm() {
      try {
        // 模拟API请求
        await this.submitFormData(this.contactForm)

        // 显示成功弹窗
        this.showSuccessModal = true

        // 重置表单
        this.contactForm = {
          name: '',
          company: '',
          email: '',
          phone: '',
          service: '',
          message: ''
        }
      } catch (error) {
        console.error('提交失败:', error)
        alert('提交失败，请稍后再试')
      }
    },
    // 模拟表单提交到数据库的函数
    async submitFormData(data) {
      try {
        // 实际项目中替换为你的API端点
        const apiUrl = '/api/contact'

        // 模拟API请求延迟
        await new Promise(resolve => setTimeout(resolve, 1500))

        // 在实际项目中使用fetch或axios发送数据
        /*
        const response = await fetch(apiUrl, {
          method: 'POST',
          headers: {
            'Content-Type': 'application/json',
          },
          body: JSON.stringify(data),
        });

        return await response.json();
        */

        // 模拟成功响应
        return { success: true, message: '表单提交成功' }
      } catch (error) {
        console.error('提交表单时出错:', error)
        throw error
      }
    }
  }
}
</script>